<style>
    th,td{
        text-align: center;
        vertical-align: middle;
    }
</style>

<div class="container" style="width: 800px;">
    <div class="row" style="text-align: center">
        <label style="margin-top: 50px;margin-bottom: 30px;font-size: 24px;">天津大学资产基本统计表</label>
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>归档年月</th>
                <th>所属单位</th>
                <th>资产类别</th>
                <th>数量</th>
                <th>价值（元）</th>
            </tr>
            </thead>
            <tbody>
            {volist name='showList' id='vo'}
            <tr>
                {if $i == 1}
                <td rowspan="6" style="vertical-align: middle">{$vo.YM}</td>
                <td rowspan="6" style="vertical-align: middle">{$vo.BELONG}</td>
                {/if}
                <td>{$vo.TYPE_NAME}</td>
                <td>{$vo.NUM}</td>
                <td>{$vo.VALUE}</td>
            </tr>
            {/volist}
            </tbody>
        </table>
    </div>
</div>

<script>
    $(function () {
        $("#belong").val('{$belong}');
    });

    function clickStatistics() {
        var ym = $("#ym").val();
        var belong = $("#belong").val();
        if(ym == ''){
            layer.alert('请输入归档年月，如：2018-10',{icon:2});
            return;
        }
        location.href = "{:url('statistics/basicInfo')}?ym=" + ym + "&belong=" + belong;
    }

    function clickPrint() {
        var ym = $("#ym").val();
        var belong = $("#belong").val();
        if(ym == ''){
            layer.alert('请输入归档年月，如：2018-10',{icon:2});
            return;
        }
        location.href = "{:url('statistics/printBasicInfo')}?ym=" + ym + "&belong=" + belong;
    }

</script>